#ifndef HELPFUNCTION_H
#define HELPFUNCTION_H

#include <vector>
#include <QList>
#include <QRandomGenerator>

#include <vector>
#include <utility>
using namespace std;

class HelpFunction
{
public:
    HelpFunction(){};
    int getRandomInt(int min, int max);
    std::vector<std::vector<int>> randomfillMatrix(int size, int numOnes, int numTwos,int numThrees);
    bool isPositionTaken(const std::vector<std::pair<int, int>>& takenPositions, int row, int col);
    QList<QList<int>> convertMatrix(const std::vector<std::vector<int>>& vecMatrix) ;
    bool canReach(vector<vector<int>>& matrix, pair<int, int> start, pair<int, int> end) ;
};

#endif // HELPFUNCTION_H
